package com.xyz.springcloud.myhandler;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.xyz.springcloud.entity.CommonResult;

/**
 * @author 肖咉卓
 */
public class CustomerBlockHandler {
    public static CommonResult handlerException(BlockException exception){
        return new CommonResult(444,"按用户自定义，global handlerException-----1",exception.getClass().getCanonicalName()+"服务不可用");
    }
    public static CommonResult handlerException2(BlockException exception){
        return new CommonResult(444,"按用户自定义，global handlerException-----2",exception.getClass().getCanonicalName()+"服务不可用");
    }
}
